Integrand size = 26, antiderivative size = 125 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=-\frac {i \text {arctanh}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{8 \sqrt {2} a^{7/2} d}+\frac {i \sec (c+d x)}{2 a d (a+i a \tan (c+d x))^{5/2}}-\frac {i \sec (c+d x)}{8 a^2 d (a+i a \tan (c+d x))^{3/2}} \]
[Out]
Time = 0.25 (sec) , antiderivative size = 125, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {3582, 3583, 3570, 212} \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=-\frac {i \text {arctanh}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{8 \sqrt {2} a^{7/2} d}-\frac {i \sec (c+d x)}{8 a^2 d (a+i a \tan (c+d x))^{3/2}}+\frac {i \sec (c+d x)}{2 a d (a+i a \tan (c+d x))^{5/2}} \]
[In]
[Out]
Rule 212
Rule 3570
Rule 3582
Rule 3583
Rubi steps \begin{align*} \text {integral}& = \frac {2 i \sec (c+d x)}{3 a d (a+i a \tan (c+d x))^{5/2}}-\frac {2 \int \frac {\sec (c+d x)}{(a+i a \tan (c+d x))^{5/2}} \, dx}{3 a} \\ & = \frac {i \sec (c+d x)}{2 a d (a+i a \tan (c+d x))^{5/2}}-\frac {\int \frac {\sec (c+d x)}{(a+i a \tan (c+d x))^{3/2}} \, dx}{4 a^2} \\ & = \frac {i \sec (c+d x)}{2 a d (a+i a \tan (c+d x))^{5/2}}-\frac {i \sec (c+d x)}{8 a^2 d (a+i a \tan (c+d x))^{3/2}}-\frac {\int \frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}} \, dx}{16 a^3} \\ & = \frac {i \sec (c+d x)}{2 a d (a+i a \tan (c+d x))^{5/2}}-\frac {i \sec (c+d x)}{8 a^2 d (a+i a \tan (c+d x))^{3/2}}-\frac {i \text {Subst}\left (\int \frac {1}{2-a x^2} \, dx,x,\frac {\sec (c+d x)}{\sqrt {a+i a \tan (c+d x)}}\right )}{8 a^3 d} \\ & = -\frac {i \text {arctanh}\left (\frac {\sqrt {a} \sec (c+d x)}{\sqrt {2} \sqrt {a+i a \tan (c+d x)}}\right )}{8 \sqrt {2} a^{7/2} d}+\frac {i \sec (c+d x)}{2 a d (a+i a \tan (c+d x))^{5/2}}-\frac {i \sec (c+d x)}{8 a^2 d (a+i a \tan (c+d x))^{3/2}} \\ \end{align*}
Time = 1.86 (sec) , antiderivative size = 120, normalized size of antiderivative = 0.96 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=\frac {i \sec ^3(c+d x) \left (-3+e^{2 i (c+d x)} \sqrt {1+e^{2 i (c+d x)}} \text {arctanh}\left (\sqrt {1+e^{2 i (c+d x)}}\right )-3 \cos (2 (c+d x))+i \sin (2 (c+d x))\right )}{16 a^3 d (-i+\tan (c+d x))^2 \sqrt {a+i a \tan (c+d x)}} \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 794 vs. \(2 (100 ) = 200\).
Time = 10.65 (sec) , antiderivative size = 795, normalized size of antiderivative = 6.36
method | result | size |
default | \(\frac {8 i \arctan \left (\frac {i \sin \left (d x +c \right )-\cos \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right ) \sin \left (d x +c \right )+4 i \tan \left (d x +c \right ) \arctan \left (\frac {i \sin \left (d x +c \right )-\cos \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )-4 i \tan \left (d x +c \right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}+8 \cos \left (d x +c \right ) \arctan \left (\frac {i \sin \left (d x +c \right )-\cos \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )-4 i \tan \left (d x +c \right ) \sec \left (d x +c \right ) \arctan \left (\frac {i \sin \left (d x +c \right )-\cos \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )-4 i \tan \left (d x +c \right ) \sec \left (d x +c \right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}+4 \arctan \left (\frac {i \sin \left (d x +c \right )-\cos \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )-4 \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}-i \tan \left (d x +c \right ) \left (\sec ^{2}\left (d x +c \right )\right ) \arctan \left (\frac {i \sin \left (d x +c \right )-\cos \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )-8 \sec \left (d x +c \right ) \arctan \left (\frac {i \sin \left (d x +c \right )-\cos \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )-4 \sec \left (d x +c \right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}-3 \left (\sec ^{2}\left (d x +c \right )\right ) \arctan \left (\frac {i \sin \left (d x +c \right )-\cos \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )-2 \left (\sec ^{2}\left (d x +c \right )\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}+\left (\sec ^{3}\left (d x +c \right )\right ) \arctan \left (\frac {i \sin \left (d x +c \right )-\cos \left (d x +c \right )-1}{2 \left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )-2 \left (\sec ^{3}\left (d x +c \right )\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}{16 d \left (\tan \left (d x +c \right )-i\right )^{3} \sqrt {a \left (1+i \tan \left (d x +c \right )\right )}\, \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, a^{3} \left (\cos \left (d x +c \right )+1\right )}\) | \(795\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 267 vs. \(2 (94) = 188\).
Time = 0.26 (sec) , antiderivative size = 267, normalized size of antiderivative = 2.14 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=\frac {{\left (-i \, \sqrt {\frac {1}{2}} a^{4} d \sqrt {\frac {1}{a^{7} d^{2}}} e^{\left (4 i \, d x + 4 i \, c\right )} \log \left (-\frac {{\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (i \, a^{3} d e^{\left (2 i \, d x + 2 i \, c\right )} + i \, a^{3} d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{7} d^{2}}} + i\right )} e^{\left (-i \, d x - i \, c\right )}}{4 \, a^{3} d}\right ) + i \, \sqrt {\frac {1}{2}} a^{4} d \sqrt {\frac {1}{a^{7} d^{2}}} e^{\left (4 i \, d x + 4 i \, c\right )} \log \left (-\frac {{\left (\sqrt {2} \sqrt {\frac {1}{2}} {\left (-i \, a^{3} d e^{\left (2 i \, d x + 2 i \, c\right )} - i \, a^{3} d\right )} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} \sqrt {\frac {1}{a^{7} d^{2}}} + i\right )} e^{\left (-i \, d x - i \, c\right )}}{4 \, a^{3} d}\right ) + \sqrt {2} \sqrt {\frac {a}{e^{\left (2 i \, d x + 2 i \, c\right )} + 1}} {\left (i \, e^{\left (4 i \, d x + 4 i \, c\right )} + 3 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + 2 i\right )}\right )} e^{\left (-4 i \, d x - 4 i \, c\right )}}{16 \, a^{4} d} \]
[In]
[Out]
\[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=\int \frac {\sec ^{3}{\left (c + d x \right )}}{\left (i a \left (\tan {\left (c + d x \right )} - i\right )\right )^{\frac {7}{2}}}\, dx \]
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 977 vs. \(2 (94) = 188\).
Time = 0.46 (sec) , antiderivative size = 977, normalized size of antiderivative = 7.82 \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=\int { \frac {\sec \left (d x + c\right )^{3}}{{\left (i \, a \tan \left (d x + c\right ) + a\right )}^{\frac {7}{2}}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {\sec ^3(c+d x)}{(a+i a \tan (c+d x))^{7/2}} \, dx=\int \frac {1}{{\cos \left (c+d\,x\right )}^3\,{\left (a+a\,\mathrm {tan}\left (c+d\,x\right )\,1{}\mathrm {i}\right )}^{7/2}} \,d x \]
[In]
[Out]